package com.hewep.demo.device.mina.core;

import java.nio.charset.Charset;

public interface Message {
	public static final Short TYPE_REQUEST = 1;
	public static final Short TYPE_RESPONSE = 2;
	
	public static final Charset CHARSET = Charset.forName("UTF-8");
	public static final int OUTPUT_BUFFER_SIZE = 4096;
	
	void setData(byte[] data);
	
	void setData(short[] data);
	
	byte[] getData();
	
	String getCmd();
	
	void setCmd(String cmd);
	
}
